package com.jd.jobkeeper.server.data.entity;

public enum Status {

    ENABLE(1, "enable"),
    DISABLE(0, "disable"),
    LOGIC_DELETE(-1, "logic delete"),
    ;

    private int v;
    private String desc;

    Status(int v, String desc) {
        this.v = v;
        this.desc = desc;
    }

    public int getV() {
        return v;
    }

    public boolean is(int status) {
        return v == status;
    }
}
